package app

import (
	"api-service/models"
	"api-service/route"

	"github.com/gin-gonic/gin"
)

func Start() {
	router := gin.Default()

	// 连接mongodb
	models.ConnectToMongo("config/mongo_test.yaml")

	// 初始化路由
	route.SetRouter(router)
	router.Run(":8081")
}
